<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */


 header("Cache-Control: no-cache, must-revalidate");
		header("Cache-Type: text/plain; charset=UTF-8");//charset=ISO-8859-1");
                require_once '../connexion (2).php';

		$res=$_POST["form"];
                if($res!="")
                {
		$req2="select * from enseignant as e, intervenir as i, formation as f, personne as p where 
                    e.IDENSEIGNANT=i.IDENSEIGNANT AND i.IDFORMATION=f.IDFORMATION AND p.IDPERSONNE=e.IDENSEIGNANT AND f.IDFORMATION=".$res;
                $r2=$connexion->query($req2);

        
		while($res=$r2->fetch(PDO::FETCH_ASSOC)){
		  
		   $Ne=$res["NOMPERSONNE"];
		   $PNe=$res["PRENOMPERSONNE"];
                   
		   echo $Ne.' '.$PNe.'  ';		   
		   }
		 }else{echo '';}

?>
